package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Category;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public interface DishService {

    List<Dish> findCategoryById(ArrayList<Long> ids);

    Result addDish(DishDTO dishDTO);

    PageResult queryPage(DishPageQueryDTO dishPageQueryDTO);

    List<Dish> findDishCateGoryById(Long categoryId);

    void statusDish(Integer status, Long id);

    DishVO queryDishById(Long id);

    void putDish(DishDTO dishDTO);

    String delDishByIds(List<Long> ids);

    List<DishVO> listWithFlavor(Dish dish);
}
